<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Parsers.Depend</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Parsers-Depend.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Parsers.Depend</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>this module parses the depend string of a package and 
  returns a list of Dependency data structures
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3Adepend_parser"
>depend_parser</A
> :: ByteString -&gt; [<A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AdefaultDepend"
>defaultDepend</A
> :: <A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aget_depend"
>get_depend</A
> :: FilePath -&gt; IO (Maybe ByteString)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aget_pdepend"
>get_pdepend</A
> :: FilePath -&gt; IO (Maybe ByteString)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aget_rdepend"
>get_rdepend</A
> :: FilePath -&gt; IO (Maybe ByteString)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A HREF="#t%3APackageDep"
>PackageDep</A
>  = <A HREF="#v%3APackageDep"
>PackageDep</A
> (String, [<A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
>])</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3ADependency"
>Dependency</A
>  = <A HREF="#v%3ADependency"
>Dependency</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AuseFlags"
>useFlags</A
> :: [ByteString]</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3Aqualifier"
>qualifier</A
> :: ByteString</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3AfullName"
>fullName</A
> :: ByteString</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3Apackage"
>package</A
> :: ByteString</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3Aversion"
>version</A
> :: ByteString</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3Aslot"
>slot</A
> :: ByteString</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3AuseDeps"
>useDeps</A
> :: ByteString</TD
></TR
></TABLE
>}</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:depend_parser"
><A NAME="v%3Adepend_parser"
></A
></A
><B
>depend_parser</B
> :: ByteString -&gt; [<A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
>]</TD
></TR
><TR
><TD CLASS="doc"
>top level function for parsing a package dependency string
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:defaultDepend"
><A NAME="v%3AdefaultDepend"
></A
></A
><B
>defaultDepend</B
> :: <A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
></TD
></TR
><TR
><TD CLASS="doc"
>default Dependency data structure
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:get_depend"
><A NAME="v%3Aget_depend"
></A
></A
><B
>get_depend</B
> :: FilePath -&gt; IO (Maybe ByteString)</TD
></TR
><TR
><TD CLASS="doc"
><P
>raw functions for attempting to open DEPEND, RDEPEND,
 and RDEPEND files
</P
><P
>DEPEND
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:get_pdepend"
><A NAME="v%3Aget_pdepend"
></A
></A
><B
>get_pdepend</B
> :: FilePath -&gt; IO (Maybe ByteString)</TD
></TR
><TR
><TD CLASS="doc"
>PDEPEND
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:get_rdepend"
><A NAME="v%3Aget_rdepend"
></A
></A
><B
>get_rdepend</B
> :: FilePath -&gt; IO (Maybe ByteString)</TD
></TR
><TR
><TD CLASS="doc"
>RDPEND
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A NAME="t:PackageDep"
><A NAME="t%3APackageDep"
></A
></A
><B
>PackageDep</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>type holding all dependencies for a particular package
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:PackageDep"
><A NAME="v%3APackageDep"
></A
></A
><B
>PackageDep</B
> (String, [<A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
>])</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:PackageDep')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:PackageDep" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
>Show <A HREF="Parsers-Depend.html#t%3APackageDep"
>PackageDep</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:Dependency"
><A NAME="t%3ADependency"
></A
></A
><B
>Dependency</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>data structure for holding a dependency of a package;
 it includes the name, version, qualifier as well as 
 the use flag that requested it if applicable
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:Dependency"
><A NAME="v%3ADependency"
></A
></A
><B
>Dependency</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:useFlags"
><A NAME="v%3AuseFlags"
></A
></A
><B
>useFlags</B
> :: [ByteString]</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:qualifier"
><A NAME="v%3Aqualifier"
></A
></A
><B
>qualifier</B
> :: ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:fullName"
><A NAME="v%3AfullName"
></A
></A
><B
>fullName</B
> :: ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:package"
><A NAME="v%3Apackage"
></A
></A
><B
>package</B
> :: ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:version"
><A NAME="v%3Aversion"
></A
></A
><B
>version</B
> :: ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:slot"
><A NAME="v%3Aslot"
></A
></A
><B
>slot</B
> :: ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:useDeps"
><A NAME="v%3AuseDeps"
></A
></A
><B
>useDeps</B
> :: ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Dependency')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:Dependency" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
>Eq <A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
></TD
></TR
><TR
><TD CLASS="decl"
>Show <A HREF="Parsers-Depend.html#t%3ADependency"
>Dependency</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.4.2</TD
></TR
></TABLE
></BODY
></HTML
>
